#ifndef __UITOPBAR__H__
#define __UITOPBAR__H__

#include <MZFCLIB.h>

#include	"iUiButton.h"
#include	"UiStatusBar.h"

typedef enum _tagTopBarBtnDisplay
{
	MUSIC_TOPBAR_CLOSE = 0,
	MUSIC_TOPBAR_MENU,
	MAX_TOPBAR_BTN,
} MUSIC_TOPBAR_BTN;

class UiTopBar :
	public UiWin
{
public:
	UiTopBar();
	~UiTopBar();

	BOOL InitUiWin(void);

	void PaintWin(HDC hdc, RECT* prcWin, RECT* prcUpdate);
	virtual int OnLButtonDown(UINT fwKeys, int xPos, int yPos);
	virtual int OnLButtonUp(UINT fwKeys, int xPos, int yPos);
	virtual void DeleteImages();

	void LoadiInterItem();
	BOOL InitImages();
public:
	iUiButton m_BtnTopBar[MAX_TOPBAR_BTN];
	ImagingHelper	*m_TopBarBG;

	HDC				m_hBakDC;
	HBITMAP			m_hBitmapBakDC;
//	HWND	m_hWnd;
public:
	void UpdateLanguage();	

};

#endif